﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entities.IRepository
{
   public interface ITaiKhoanRepository
    {
        int ThemTaiKhoan(TaiKhoan taikhoan);
        bool CapNhatTaiKhoan(TaiKhoan taikhoan);
        bool XoaTaiKhoan(TaiKhoan taikhoan);
        bool CapNhatPhanQuyen(string Us, int phanquyen);


        TaiKhoan LayTheoId(int id);
        TaiKhoan LayChiTietTheoId(int id);
        List<TaiKhoan> LayTatCa();
        TaiKhoan LayTheoUsername(string us);
      
    }
}
